<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/webvote/pages/style/common.css" type="text/css" />
<title>攀枝花移动投票平台</title>
<script  type="text/javascript">
function list_sub_nav(Id,sortname){
     var li=document.getElementsByTagName("li");
     for(var i=0; i<li.length; i++)   
     {   
  		 //window.alert(li[i].id);
  		 if(li[i].id==Id){
  		       document.getElementById(li[i].id).className='bg_image_onclick';//设置背景色
  		    }
  		    else{
  		       document.getElementById(li[i].id).className='bg_image';//设置背景色
  		    }
  	 }
}

 //获取对象属性兼容方法
 function getObject(objectId) {
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId);
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId);
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
}
</script>
</head>
<body style="background:url(/webvote/pages/images/index-1_02.gif) repeat-x top; height:86px;">
<div class="header_content">
     <div class="logo"><img src="/webvote/pages/images/man_logo.gif" alt="51EHUO-无忧易货网后台管理" /></div>
	 <div class="date"> 
        <marquee behavior="scroll" direction="left" scrollamount="2" scrolldelay="2" class="a" onmouseover=stop() onmouseout=start() >
        <script type="text/javascript">
var bt=new Date();
var by=bt.getFullYear();
var bu=bt.getMonth()+1;
var bi=bt.getDate();
var bd=bt.getDay();
var ht=bt.getHours();
if (ht<=4) {document.write("凌晨好！&nbsp;&nbsp;")}
else if(ht<=10) {document.write("上午好！&nbsp;&nbsp;")} 
else if(ht<=14) {document.write("中午好！&nbsp;&nbsp;")} 
else if(ht<=18) {document.write("下午好！&nbsp;&nbsp;")} 
else {document.write("晚上好！&nbsp;&nbsp;");}
document.write("今天是:&nbsp;&nbsp;"+by+"年"+bu+"月"+bi+"日"+";&nbsp;&nbsp;");
if(bd==0){document.write("星期日。&nbsp;&nbsp;&nbsp;")}
if(bd==1){document.write("星期一。&nbsp;&nbsp;&nbsp;")}
if(bd==2){document.write("星期二。&nbsp;&nbsp;&nbsp;")}
if(bd==3){document.write("星期三。&nbsp;&nbsp;&nbsp;")}
if(bd==4){document.write("星期四。&nbsp;&nbsp;&nbsp;")}
if(bd==5){document.write("星期五。&nbsp;&nbsp;&nbsp;")}
if(bd==6){document.write("星期六。&nbsp;&nbsp;&nbsp;")}
document.write("欢迎您的访问！");

function logout(number){
  			if(number==1){
				if(confirm("是否注销")){
					window.parent.parent.document.location.href="/webvote/logout.do?action=logout";
				}
			}else{
				javascript:window.parent.close();
			}
		}
</script></marquee>
     </div>
     <div class="right_nav">
        <a href="javascript:logout(1);"></a>
	 </div>
</div>
<div id="nav">
<ul>
   <c:forEach var="pmenu" items="${topmenulist}">
    
    <c:choose>
									<c:when test="${leftmenulist.mid eq pmenu.mid}">
									    
									    <li id="${pmenu.mid}" onclick="list_sub_nav(${pmenu.mid},'${pmenu.mname}')"  class="bg_image_onclick" ><a href="/webvote/logout.do?action=refresh&&pid=${pmenu.mid}" target="subFrame">${pmenu.mname}</a></li>
									</c:when>
									<c:otherwise>
									    <li id="${pmenu.mid}" onclick="list_sub_nav(${pmenu.mid},'${pmenu.mname}')"  class="bg_image" ><a href="/webvote/logout.do?action=refresh&&pid=${pmenu.mid}" target="subFrame">${pmenu.mname}</a></li>
									</c:otherwise>
    </c:choose>
   </c:forEach>
 </ul>
</div>
</body>
</html>

